.class public Lcom/estrongs/android/widget/j;
.super Landroid/app/Dialog;
.source "LogChooseApkFromReminderDialog.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/Button;

.field private c:Landroid/widget/Button;

.field private d:Landroid/widget/CheckBox;

.field private e:Landroid/widget/ExpandableListView;

.field private f:Lcom/estrongs/android/pop/app/log/adapter/c;

.field private g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation
.end field

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation
.end field

.field public i:Landroid/content/DialogInterface$OnKeyListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;)V"
        }
    .end annotation

    const v0, 0x7f1202a5

    .line 1
    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 2
    new-instance v0, Lcom/estrongs/android/widget/j$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/widget/j$c;-><init>(Lcom/estrongs/android/widget/j;)V

    iput-object v0, p0, Lcom/estrongs/android/widget/j;->i:Landroid/content/DialogInterface$OnKeyListener;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/widget/j;->g:Ljava/util/List;

    .line 5
    iput-object p3, p0, Lcom/estrongs/android/widget/j;->h:Ljava/util/List;

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/widget/j;->f()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/widget/j;)Lcom/estrongs/android/pop/app/log/adapter/c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/j;->f:Lcom/estrongs/android/pop/app/log/adapter/c;

    return-object p0
.end method

.method private a(Ljava/util/ArrayList;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;)V"
        }
    .end annotation

    .line 2
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 4
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    .line 5
    iget-object v1, v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 6
    :cond_0
    invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object p1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/widget/j;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

    .line 9
    invoke-interface {p1}, Ljava/util/Set;->size()I

    move-result v1

    const-string v2, "new_file_apk_from_setting"

    if-ne v1, v0, :cond_1

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v2, v0}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    goto :goto_1

    .line 11
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {v0, v2, p1}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    .line 12
    :goto_1
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p1

    invoke-virtual {p1}, Les/eo;->j()V

    .line 13
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p1

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Les/eo;->a(Z)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    const v1, 0x7f110622

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {p1, v1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/widget/j;)Landroid/widget/CheckBox;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/j;->d:Landroid/widget/CheckBox;

    return-object p0
.end method

.method private b()V
    .locals 3

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/widget/j;->f:Lcom/estrongs/android/pop/app/log/adapter/c;

    if-eqz v1, :cond_2

    .line 4
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/log/adapter/b;->b()Ljava/util/ArrayList;

    move-result-object v1

    .line 5
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    .line 6
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    const v1, 0x7f110610

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    .line 9
    :cond_1
    invoke-direct {p0, v0}, Lcom/estrongs/android/widget/j;->a(Ljava/util/ArrayList;)V

    :cond_2
    :goto_1
    return-void
.end method

.method private c()V
    .locals 3

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/widget/j;->d()Ljava/util/List;

    move-result-object v0

    .line 3
    new-instance v1, Lcom/estrongs/android/pop/app/log/adapter/c;

    iget-object v2, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    invoke-direct {v1, v2, v0}, Lcom/estrongs/android/pop/app/log/adapter/c;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v1, p0, Lcom/estrongs/android/widget/j;->f:Lcom/estrongs/android/pop/app/log/adapter/c;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->e:Landroid/widget/ExpandableListView;

    invoke-virtual {v0, v1}, Landroid/widget/ExpandableListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    const/4 v0, 0x0

    .line 5
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/widget/j;->f:Lcom/estrongs/android/pop/app/log/adapter/c;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/log/adapter/b;->getGroupCount()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/widget/j;->e:Landroid/widget/ExpandableListView;

    invoke-virtual {v1, v0}, Landroid/widget/ExpandableListView;->expandGroup(I)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/widget/j;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/widget/j;->b()V

    return-void
.end method

.method private d()Ljava/util/List;
    .locals 5
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    invoke-direct {v1}, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;-><init>()V

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    const v3, 0x7f11060c

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->name:Ljava/lang/String;

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/widget/j;->g:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    iput v2, v1, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/widget/j;->g:Ljava/util/List;

    check-cast v2, Ljava/util/ArrayList;

    iput-object v2, v1, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->children:Ljava/util/ArrayList;

    .line 6
    new-instance v2, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    invoke-direct {v2}, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;-><init>()V

    .line 7
    iget-object v3, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    const v4, 0x7f11060f

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->name:Ljava/lang/String;

    .line 8
    iget-object v3, p0, Lcom/estrongs/android/widget/j;->h:Ljava/util/List;

    move-object v4, v3

    check-cast v4, Ljava/util/ArrayList;

    iput-object v4, v2, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->children:Ljava/util/ArrayList;

    .line 9
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    iput v3, v2, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    .line 10
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 11
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-object v0
.end method

.method private e()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c025d

    const/4 v2, 0x0

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x2

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 4
    invoke-super {p0, v0, v1}, Landroid/app/Dialog;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const v1, 0x7f09072a

    .line 5
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/estrongs/android/widget/j;->b:Landroid/widget/Button;

    const v1, 0x7f090741

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    iput-object v1, p0, Lcom/estrongs/android/widget/j;->d:Landroid/widget/CheckBox;

    const v1, 0x7f090729

    .line 7
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/estrongs/android/widget/j;->c:Landroid/widget/Button;

    const v1, 0x7f09072d

    .line 8
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ExpandableListView;

    iput-object v0, p0, Lcom/estrongs/android/widget/j;->e:Landroid/widget/ExpandableListView;

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->c:Landroid/widget/Button;

    new-instance v1, Lcom/estrongs/android/widget/j$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/widget/j$a;-><init>(Lcom/estrongs/android/widget/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/widget/j;->b:Landroid/widget/Button;

    new-instance v1, Lcom/estrongs/android/widget/j$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/widget/j$b;-><init>(Lcom/estrongs/android/widget/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private f()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/widget/j;->e()V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/widget/j;->c()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 7

    .line 15
    invoke-virtual {p0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 16
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    .line 17
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    .line 18
    iget-object v1, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    const-string v2, "window"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/WindowManager;

    .line 19
    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    .line 20
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    .line 21
    iget-object v3, p0, Lcom/estrongs/android/widget/j;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 22
    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    int-to-double v3, v1

    const-wide v5, 0x3fe999999999999aL    # 0.8

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v3, v3, v5

    double-to-int v1, v3

    iput v1, v2, Landroid/view/WindowManager$LayoutParams;->height:I

    goto :goto_0

    .line 23
    :cond_0
    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    int-to-double v3, v1

    const-wide v5, 0x3feccccccccccccdL    # 0.9

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v3, v3, v5

    double-to-int v1, v3

    iput v1, v2, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 24
    :goto_0
    invoke-virtual {v0, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    :cond_1
    return-void
.end method

.method public show()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Dialog;->show()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/widget/j;->a()V

    return-void
.end method
